﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<script language="c#" runat="server">
protected string BuildObjectOptions()
{
	string result = "";
	DataRow[] rows = Manager.Objects.Select(Alias.Module.Object.Namespace + "='" + Request.QueryString["Namespace"] + "'");
	foreach (DataRow row in rows)
	{
		if (row["FullName"].ToString() == Request.QueryString["ObjectFullName"])
			result += "<option value=\"" + row["FullName"] + "\" data-inner-id=\"" + row[Alias.Module.Object.InnerID] + "\" selected>" + row["FullName"] + "</option>";
		else
			result += "<option value=\"" + row["FullName"] + "\" data-inner-id=\"" + row[Alias.Module.Object.InnerID] + "\">" + row["FullName"] + "</option>";
	}

	return result;
}
</script>
<%=BuildObjectOptions()%>